package com.example.eventmechanism;

import android.app.Activity;
import android.view.View;
import android.widget.TextView;

public class Outside implements View.OnClickListener {

    TextView show;

    public Outside(TextView textView){
        this.show=textView;
    }

    //使用外部类作为监听器
    @Override
    public void onClick(View Source){
        show.setText("点击采用了外部类为监听器");
    }
}
